Adds the specified item to the collection.
シンタックス
'宣言
Public Overloads Shared Function AddAsync(Of As Class)( _
ByVal As IDataCollection(Of T), _
ByVal As , _
Optional ByVal As System.Threading.CancellationToken _
) As System.Threading.Tasks.Task(Of Integer)
public static System.Threading.Tasks.Task<int> AddAsync<>(
IDataCollection<T> ,
,
System.Threading.CancellationToken
)
where T: class
パラメータ
- dataCollection
- The data collection.
- item
- The item to be added.
- cancellationToken
- The cancellation token.
型パラメータ
- T
参照